*-------------------------------------------------------------------------------------------------------*
*RESEARCHERS:		Mette Foged, Linea Hasager and Vasil Yasenov
*PROJECT:			Meta-analysis
*DESCRIPTION:		 Master do-file runs 1.-11. which:
*					1) Creates OECD panel data
*					2) Cleans database with estimates
*					3) Creates data for robustness checks
*					4) Creates descriptive table for institutional variables
*					5) Creates main results
*					6) Creates list of papers for appendix
*					7) Creates histograms of estimates
*					8) Creates robustness checks
*					9) Runs publication bias tests
*					10) Creates correlation matrix for institutional variables
*					11) Creates robustness checks with full database
*					Then deletes all temporary data created
*----------------------------------*

global do 			"\Do_files_replication_SJE"
global out	 		"\Do_files_replication_SJE\Output"
global data 		"\Do_files_replication_SJE\Data\"


include "$do\1. create OECD panel.do"

include "$do\2. data_clean.do"

include "$do\3. create data for robustness checks.do"

include "$do\4. data_descriptive_tables - variation in OECD data.do"

include "$do\5. main results.do"

include "$do\6. data_descriptive_tables - list of papers TABLE 1 appendix.do"

include "$do\7. histograms.do"

include "$do\8. robustness checks.do"

include "$do\9. publication bias.do"

include "$do\10. correlation matrix institutions.do"

include "$do\11. results with full database.do"


*ERASE TEMPORARY DATASETS CONSTRUCTED DURING THE MASTER DO-FILE
erase "$data\database_clean.dta"
erase "$data\database_clean_full.dta"
erase "$data\database_clean_robust.dta"
erase "$data\database_clean_robustness.dta"
erase "$data\IV_type_combined.dta"
erase "$data\OECD_means_2.dta"
erase "$data\OECD_panel.dta"
erase "$data\OECD_panel_countries_used.dta"
erase "$data\OECD_panel_years_used.dta"
erase "$data\region2_combined.dta"
erase "$data\skill_combined.dta"
erase "$data\top50_combined.dta"

